<template>
  <div id='demo2'>
    <h2>demo2</h2>
  </div>
</template>
<script>
export default {
  name: 'demo',
  components: {},
  props: ['parm'],
  data() {
    return {
      demo: '',
    }
  },
  created() {},
  mounted() {
    this.$bus.$on('aa', (val) => {
      // console.log(val)
    })
     setTimeout(() => {
      this.$bus.$off('aa')
      // console.log(11)
    }, 5000)
  },
  methods: {},
}
</script>
<style scoped lang='less'>
#demo {
}
</style>
